package cn.example.zjgsu.service;

import cn.example.zjgsu.exception.MyException;
import cn.example.zjgsu.pojo.City;
import cn.example.zjgsu.pojo.result.ResultFood;
import cn.example.zjgsu.pojo.result.ResultMFR;
import cn.example.zjgsu.pojo.result.ResultShop;

import java.util.List;

/**
 * @author xuejiahui
 * @date 2020/3/15 -20:08
 */
public interface HomePageServer {
   List<ResultFood> getNationalSelection();
   int  getCityIdByName(String cityname);
   City getCityInformation(int cityid);
   List<ResultFood> getFoodByCityId(int cityid);
   List<ResultShop> getShopByCityId(int cityid); //修改
   List<ResultFood> getFoodByShopId(int shopid); //修改
   List<ResultShop> getShopByFoodId(int foodid); //修改
   List<ResultMFR> getFoodRecordByCityID(int cityid);
   ResultShop getShopByShopId(int shopid);
   List<ResultFood> fuzzyQueryFood(String foodname)throws MyException;
}
